import http from '@/api';

export const Upload = (data, config) => {
  return http.post('/adminApi/upload', data, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    ...config,
  });
};

export const UploadMinio = (data, config) => {
  return http.post('/adminApi/minio', data, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    ...config,
  });
};

export const UploadQiniu = (data, config) => {
  return http.post('/adminApi/qiniu', data, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    ...config,
  });
};
